home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Amiga Public Domain Connection
/
APDC Disk #025 - Programming Languages (198x)(Amiga Public Domain Connection)(US)[m][WB].zip
/
APDC Disk #025 - Programming Languages (198x)(Amiga Public Domain Connection)(US)[m][WB].adf
/
Modula-2
/
m2
/
Graphics.DEF
< prev
next >
Wrap
Text File
|
1988-03-15
|
2KB
|
61 lines
(********************************************************************************
Name : Graphics.DEF
Version : 1.0
Purpose : Inteface to graphics library
Author : ms
Modified : 2.4.86 15:35 ms
********************************************************************************)
DEFINITION MODULE Graphics;
FROM SYSTEM IMPORT ADDRESS, BYTE;
TYPE ViewPort = RECORD
next: POINTER TO ViewPort;
colorMap,
dspIns,
sprIns,
clrIns,
uCopIns: ADDRESS;
dWidth, dHeight: INTEGER;
dxOffset, dyOffset: INTEGER;
modes: CARDINAL;
res: CARDINAL;
rasInfo: ADDRESS
END;
View = RECORD
viewPort: ADDRESS;
lofCprList,
shfCprList: ADDRESS;
dyOffset, dxOffset: INTEGER;
modes: CARDINAL;
END;
RasInfo = RECORD
next: POINTER TO RasInfo;
bitMap: ADDRESS;
rxOffset, ryOffset: INTEGER
END;
BitMap = RECORD
bytesPerRow,
rows: CARDINAL;
flags, depth: BYTE;
pad: CARDINAL;
planes: ARRAY [0..7] OF ADDRESS
END;
PROCEDURE OffDisplay;
PROCEDURE OnDisplay;
PROCEDURE InitView(VAR v: View);
PROCEDURE InitBitMap(VAR bm: BitMap; d, w, h: CARDINAL);
PROCEDURE InitVPort(VAR vp: ViewPort);
PROCEDURE MakeVPort(VAR v: View; VAR vp: ViewPort);
PROCEDURE MrgCop(VAR v: View);
PROCEDURE LoadView(VAR v: View);
END Graphics.